package com.mgm.pojo;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Advertisement {
	
    private Integer id; //主键
    
    private Integer adv_id; //广告主ID
    
    private transient String aderName; //广告主名称
    private transient String aderType; //广告主类型
    
    //================Offer基础信息 start ===================
    private String offerId; //*

    private String offerName; //*
    
    private Boolean enabled; //开关
	//================Offer基础信息 end =====================
    
    
    //================Offer结算信息 start ===================
    private String pay_type; //* 结算方式pay out type(cpi/cpc/cpm)

    private BigDecimal pay_price; //* 单价(pay out)

	private String currency; //* 上游会给 不给就默认USD
    
    private String requires; //需要id(空/idfa/gaid/aid)
	//================Offer结算信息 end =====================
    
    
    //================Offer投放设置 start ===================
    private String os; // os／platform
    
    private String countries; //*
    
    private String click_url; //* =tracking url
    
    private String carrier; //指定运营商
    
    private String os_version; //required os version
    
    private Boolean excitation; //是否需要激励
    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date expire_date; //上游的有效期标记

    private String trackingsolution; //检测类型Monitoring (adjust/appsflyer/mat/reyun/talkingdata)
    
    private String kpi; //KPI
    //================Offer投放设置 end =====================
    

    //cap=================start===================
    private String cap_type;
    
    private BigDecimal convernsion_cap; //总cap
    private BigDecimal daily_conversion_cap; //日cap
    private BigDecimal month_conversion_cap; //月cap
    
    private BigDecimal payout_cap; //该offer最多跑多少钱 （total_cap）
    private BigDecimal daily_payout_cap; //该offer一天最多跑多少钱 （daily_cap）
    private BigDecimal month_payout_cap; //该offer一个月最多跑多少钱
    //cap=================end=====================
    
    
    //=================app基础信息 start===================
    private String appname; //*

    private String pkgname; //* 也叫appid，推广的app的包名

    private String preview_url; // app展示url
	//=================app基础信息 end===================

    
    private Integer premium; //溢价

    private BigDecimal premium_price; //溢价后价格

    private String icon; //icon url
    
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date start_at; //入库时间

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date end_at; //上游关闭时间

    private Date update_time; //更新时间
    
    private Integer counter; //变更次数
    
    private String p1; //预留字段1 = 上游原始offerid
    private String p2; //预留字段2
    private String p3; //预留字段3
    private String p4; //预留字段4
    private String p5; //预留字段5
    private String p6; //预留字段6
    private String p7; //预留字段7
    private String p8; //预留字段8
    private String p9; //预留字段9
    private String p10; //预留字段10
    
    
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getAdv_id() {
		return adv_id;
	}
	public void setAdv_id(Integer adv_id) {
		this.adv_id = adv_id;
	}
	public String getAderName() {
		return aderName;
	}
	public void setAderName(String aderName) {
		this.aderName = aderName;
	}
	public String getAderType() {
		return aderType;
	}
	public void setAderType(String aderType) {
		this.aderType = aderType;
	}
	public String getOfferId() {
		return offerId;
	}
	public void setOfferId(String offerId) {
		this.offerId = offerId;
	}
	public String getOfferName() {
		return offerName;
	}
	public void setOfferName(String offerName) {
		this.offerName = offerName;
	}
	public Boolean getEnabled() {
		return enabled;
	}
	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
	public String getPay_type() {
		return pay_type;
	}
	public void setPay_type(String pay_type) {
		this.pay_type = pay_type;
	}
	public BigDecimal getPay_price() {
		return pay_price;
	}
	public void setPay_price(BigDecimal pay_price) {
		this.pay_price = pay_price;
	}
	public String getCurrency() {
		return currency;
	}
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	public String getRequires() {
		return requires;
	}
	public void setRequires(String requires) {
		this.requires = requires;
	}
	public String getOs() {
		return os;
	}
	public void setOs(String os) {
		this.os = os;
	}
	public String getCountries() {
		return countries;
	}
	public void setCountries(String countries) {
		this.countries = countries;
	}
	public String getClick_url() {
		return click_url;
	}
	public void setClick_url(String click_url) {
		this.click_url = click_url;
	}
	public String getCarrier() {
		return carrier;
	}
	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}
	public String getOs_version() {
		return os_version;
	}
	public void setOs_version(String os_version) {
		this.os_version = os_version;
	}
	public Boolean getExcitation() {
		return excitation;
	}
	public void setExcitation(Boolean excitation) {
		this.excitation = excitation;
	}
	public Date getExpire_date() {
		return expire_date;
	}
	public void setExpire_date(Date expire_date) {
		this.expire_date = expire_date;
	}
	public String getTrackingsolution() {
		return trackingsolution;
	}
	public void setTrackingsolution(String trackingsolution) {
		this.trackingsolution = trackingsolution;
	}
	public String getKpi() {
		return kpi;
	}
	public void setKpi(String kpi) {
		this.kpi = kpi;
	}
	public String getCap_type() {
		return cap_type;
	}
	public void setCap_type(String cap_type) {
		this.cap_type = cap_type;
	}
	public BigDecimal getConvernsion_cap() {
		return convernsion_cap;
	}
	public void setConvernsion_cap(BigDecimal convernsion_cap) {
		this.convernsion_cap = convernsion_cap;
	}
	public BigDecimal getDaily_conversion_cap() {
		return daily_conversion_cap;
	}
	public void setDaily_conversion_cap(BigDecimal daily_conversion_cap) {
		this.daily_conversion_cap = daily_conversion_cap;
	}
	public BigDecimal getMonth_conversion_cap() {
		return month_conversion_cap;
	}
	public void setMonth_conversion_cap(BigDecimal month_conversion_cap) {
		this.month_conversion_cap = month_conversion_cap;
	}
	public BigDecimal getPayout_cap() {
		return payout_cap;
	}
	public void setPayout_cap(BigDecimal payout_cap) {
		this.payout_cap = payout_cap;
	}
	public BigDecimal getDaily_payout_cap() {
		return daily_payout_cap;
	}
	public void setDaily_payout_cap(BigDecimal daily_payout_cap) {
		this.daily_payout_cap = daily_payout_cap;
	}
	public BigDecimal getMonth_payout_cap() {
		return month_payout_cap;
	}
	public void setMonth_payout_cap(BigDecimal month_payout_cap) {
		this.month_payout_cap = month_payout_cap;
	}
	public String getAppname() {
		return appname;
	}
	public void setAppname(String appname) {
		this.appname = appname;
	}
	public String getPkgname() {
		return pkgname;
	}
	public void setPkgname(String pkgname) {
		this.pkgname = pkgname;
	}
	public String getPreview_url() {
		return preview_url;
	}
	public void setPreview_url(String preview_url) {
		this.preview_url = preview_url;
	}
	public Integer getPremium() {
		return premium;
	}
	public void setPremium(Integer premium) {
		this.premium = premium;
	}
	public BigDecimal getPremium_price() {
		return premium_price;
	}
	public void setPremium_price(BigDecimal premium_price) {
		this.premium_price = premium_price;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Date getStart_at() {
		return start_at;
	}
	public void setStart_at(Date start_at) {
		this.start_at = start_at;
	}
	public Date getEnd_at() {
		return end_at;
	}
	public void setEnd_at(Date end_at) {
		this.end_at = end_at;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public Integer getCounter() {
		return counter;
	}
	public void setCounter(Integer counter) {
		this.counter = counter;
	}
	public String getP1() {
		return p1;
	}
	public void setP1(String p1) {
		this.p1 = p1;
	}
	public String getP2() {
		return p2;
	}
	public void setP2(String p2) {
		this.p2 = p2;
	}
	public String getP3() {
		return p3;
	}
	public void setP3(String p3) {
		this.p3 = p3;
	}
	public String getP4() {
		return p4;
	}
	public void setP4(String p4) {
		this.p4 = p4;
	}
	public String getP5() {
		return p5;
	}
	public void setP5(String p5) {
		this.p5 = p5;
	}
	public String getP6() {
		return p6;
	}
	public void setP6(String p6) {
		this.p6 = p6;
	}
	public String getP7() {
		return p7;
	}
	public void setP7(String p7) {
		this.p7 = p7;
	}
	public String getP8() {
		return p8;
	}
	public void setP8(String p8) {
		this.p8 = p8;
	}
	public String getP9() {
		return p9;
	}
	public void setP9(String p9) {
		this.p9 = p9;
	}
	public String getP10() {
		return p10;
	}
	public void setP10(String p10) {
		this.p10 = p10;
	}

    
}